# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=termcolor
pkgver=2.1.0
pkgrel=0
pkgdesc="Header-only C++ library for printing colored messages to the terminal"
url="https://github.com/ikalnytskyi/termcolor"
arch="noarch"
license="BSD-3-Clause"
makedepends="cmake ninja"
subpackages="$pkgname-dev"
source="https://github.com/ikalnytskyi/termcolor/archive/v$pkgver/termcolor-$pkgver.tar.gz"
options="!check"  # no automated tests provided

build() {
	cmake -G Ninja -B build \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=None
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
668853a93e1208a08a4ea9ac8db2d9c615cefd0325c35402b767e0b1bf373589507b8eb7685babd5801c1e4f2533db6f4eabfedde365737a4c7c069f00f536d8  termcolor-2.1.0.tar.gz
"
